#ifndef _GEOMETRY_UVSPHERE_H_
#define _GEOMETRY_UVSPHERE_H_

#include "Shape.h"
#include "../Texture/Texture.h"

class UVSphere : public Shape
{
public:
	UVSphere(const Vector3& _center, float _radius, Texture* _tex);
	bool hit(const Ray& r, float tmin, float tmax, float time, HitRecord &record) const;
	bool shadowHit(const Ray& r, float tmin, float tmax, float time) const;

private:
	Vector3 center;
	float radius;
	Texture* tex;
};


#endif